package com.ruoyi.web.controller.cs;

import java.util.List;

import com.ruoyi.common.core.controller.BasicsController;
import com.ruoyi.common.core.page.ResponsePageInfo;
import io.swagger.annotations.Api;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.cs.domain.TVipUser;
import com.ruoyi.cs.service.ITVipUserService;

/**
 * 用户VIP变化记录Controller
 * 
 * @author ruoyi
 * @date 2023-03-02
 */
@Api(tags = {"用户VIP等级变化记录"})
@RestController
@RequestMapping("/cs/vipuser")
public class TVipUserController extends BasicsController
{
    @Autowired
    private ITVipUserService tVipUserService;

    /**
     * 查询用户VIP变化记录列表
     */
    @PreAuthorize("@ss.hasPermi('system:user:list')")
    @GetMapping("/list")
    public ResponsePageInfo<TVipUser> list(@RequestBody  TVipUser tVipUser)
    {
        startPage(tVipUser.getPageNum(),tVipUser.getPageSize());
        List<TVipUser> list = tVipUserService.selectTVipUserList(tVipUser);
        return toResponsePageInfo(list);
    }
}
